package com.itlong.cloud.app.dao;

import com.itlong.cloud.POJO.VO.app.robot.AppRobotAccountInfoGetVO;
import com.itlong.cloud.POJO.VO.app.robot.AppRobotProjectInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *      机器人APP登录持久层接口
 * </desc>
 *
 * @createDate 2018/10/15
 */
@Mapper
@Repository
public interface IAppRobotLoginDao {

    /**
     * <desc>
     *      获取机器人登录账号信息
     * </desc>
     *
     * @param account 账号
     * @return 账号信息
     * @author wangzhi
     * @createDate 2018/10/15
     */
    AppRobotAccountInfoGetVO getRobotUserByAccount(@Param("account") String account);

    /**
     * <desc>
     *      获取项目id列表
     * </desc>
     *
     * @param userId 开发者账号用户id
     * @return
     * @Author Zhu.yj
     * @createDate  2020/8/3
     */
    List<AppRobotProjectInfoVO> getProjectIdList(@Param("userId") String userId);

    /**
     * <desc>
     *      获取项目详细信息
     * </desc>
     *
     * @param params 参数map
     * @return
     * @Author Zhu.yj
     * @createDate  2020/8/4
     */
    String getProjectDetail(Map<String, Object> params);

}
